package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Address;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressDao {
    void add(Address address);

    Page findPage(String queryString);

    Address findById(Integer id);

    void update(Address address);

    void delete(Integer id);

    List<Order> findOrderByAddressId(Integer addressId);

    String findNameByMemberId(Integer memberId);

    String findNameBySetmealName(Integer setmealId);

    List<Address> findAllAddress();

    Address findByLngAndLat(String addressValue);

    Integer findByOrderId(Integer id);

    void addOrderIdAndAddressId(@Param("addressId") Integer addressId,@Param("orderId") Integer orderId);
}
